﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

using System.Runtime.InteropServices;



namespace mc_tester
{

    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary> 

        //Konzol kezeléshez kell
        [DllImport("kernel32.dll", EntryPoint = "AllocConsole", SetLastError = true, CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)]
        
        private static extern int AllocConsole();
        
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            
            //splash screen
            SplashScreen sp = new SplashScreen();
            sp.ShowDialog();

            //Konzol
            AllocConsole();

            Console.Title = "UCMote tester debug console";

            Console.WriteLine("Program elindult");
            Application.Run(new ApplicationForm());
            Console.WriteLine("Program kilépett");
        }

    }
}
